import Exception403 from '../routes/Exception/403';
import Exception404 from '../routes/Exception/404';
import Exception500 from '../routes/Exception/500';

import Success from '../routes/Result/Success';
import Error from '../routes/Result/Error';

import Login from '../routes/User/Login';
import Register from '../routes/User/Register';
import RegisterResult from '../routes/User/RegisterResult';

export const sysNav = [
  {
    name: '异常',
    path: 'error',
    icon: 'frown',
    children: [
      {
        name: '403',
        path: '403',
        component: Exception403,
      }, {
        name: '404',
        path: '404',
        component: Exception404,
      }, {
        name: '500',
        path: '500',
        component: Exception500,
      },
    ],
  }, {
    name: '结果',
    path: 'result',
    icon: 'check-circle-o',
    children: [
      {
        name: '成功',
        path: 'success',
        component: Success,
      }, {
        name: '失败',
        path: 'fail',
        component: Error,
      },
    ],
  }, {
    name: '帐户',
    icon: 'user',
    path: 'user',
    children: [{
      name: '登录',
      path: 'login',
      component: Login,
    }, {
      name: '注册',
      path: 'register',
      component: Register,
    }, {
      name: '注册结果',
      path: 'register-result',
      component: RegisterResult,
    }],
  },
];
